﻿using System.Windows;

namespace MDCAdminTool.Controls
{
    public partial class AddDataCacheItemWin : Window
    {
        public string Key
        {
            get { return tbKey.Text; }
        }
        public string Value
        {
            get { return tbValue.Text; }
        }
        public string Number
        {
            get { return tbNumber.Text; }
        }

        public bool IsSave
        {
            get { return _IsSave; }
            private set { _IsSave = value; }
        }
        private bool _IsSave;

        public AddDataCacheItemWin()
        {
            InitializeComponent();
        }

        private void Cancel_Click( object sender , RoutedEventArgs e )
        {
            IsSave = false;
            this.Close();
        }
        private void Save_Click( object sender , RoutedEventArgs e )
        {
            IsSave = true;
            this.Hide();
        }
    }
}
